package cn.trud._1add.response;

public class JsoonResult {
    public Integer code;
    public  String msg;
    public Object data;




    public JsoonResult(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
    public JsoonResult(StatusCode statusCode, Object data) {
        this.code = statusCode.getCode();
        this.msg = statusCode.getMsg();
    }

    public static JsoonResult ok(Object data){
        return new JsoonResult(StatusCode.OPERATUON_SUCCESS,data);
    }

    public static JsoonResult ok(){
        return ok(null);
    }
}





